package learn.jackjson.bean;

import java.util.ArrayList;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonProperty;

public class User {
	private String userID;
	private String loginName;
	private String truename;
	private String nickname;
	private String loginPwd;
	private String QQ;
	private String phone;
	private String email;
	private String telelephone;
	private int isDelete;
	private List<Role> roleList=new ArrayList<Role>();
	public String getUserID() {
		return userID;
	}
	public void setUserID(String userID) {
		this.userID = userID;
	}
	//定义Json中的属性名
	@JsonProperty("LoginName")
	public String getLoginName() {
		return loginName;
	}
	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}
	
	@JsonProperty("Truename")
	public String getTruename() {
		return truename;
	}
	public void setTruename(String truename) {
		this.truename = truename;
	}
	
	@JsonProperty("Nickname")
	public String getNickname() {
		return nickname;
	}
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	
	@JsonProperty("LoginPwd")
	public String getLoginPwd() {
		return loginPwd;
	}
	public void setLoginPwd(String loginPwd) {
		this.loginPwd = loginPwd;
	}
	public String getQQ() {
		return QQ;
	}
	public void setQQ(String qQ) {
		QQ = qQ;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getTelelephone() {
		return telelephone;
	}
	public void setTelelephone(String telelephone) {
		this.telelephone = telelephone;
	}
	public int getIsDelete() {
		return isDelete;
	}
	public void setIsDelete(int isDelete) {
		this.isDelete = isDelete;
	}
	public List<Role> getRoleList() {
		return roleList;
	}
	public void setRoleList(List<Role> roleList) {
		this.roleList = roleList;
	}
	@Override
	public String toString() {
		return "User [userID=" + userID + ", loginName=" + loginName
				+ ", truename=" + truename + ", nickname=" + nickname
				+ ", loginPwd=" + loginPwd + ", QQ=" + QQ + ", phone=" + phone
				+ ", email=" + email + ", telelephone=" + telelephone
				+ ", isDelete=" + isDelete + ", roleList=" + roleList + "]";
	}
	
	
}
